import request from '@/utils/request'

export function addSchedule(inboundForm) {//增加排班
    return request({
        url: '/system/streamSchedule',
        headers: {
            isToken: true
        },
        method: 'post',
        data: inboundForm
    });
}

export function getScheduleList(pageNum,pageSize) {//获取排班列表
    return request({
        url: '/system/streamSchedule/list',
        headers: {
            isToken: true
        },
        method: 'get',
        params: {
            pageNum,pageSize
        }
    });
}

export function getOrderCode() {//获取入库单单号
    return request({
        url: '/system/inboundOrder/getInboundOrderCode',
        headers: {
            isToken: true
        },
        method: 'get',
    });
}



export function addStreamShop(streamShopForm) {//增加店铺
    return request({
        url: '/system/streamShop',
        headers: {
            isToken: true
        },
        method: 'post',
        data: streamShopForm
    });
}

export function deleteStreamShop(Id) {//删除店铺
    return request({
        url: '/system/streamShop/' + Id,
        headers: {
            isToken: true
        },
        method: 'delete',
       
    });
}
// 编辑店铺
export function editStreamShop(wmsStreamShop) {
    return request({
        url: '/system/streamShop',
        headers: {
            isToken: true
        },
        method: 'put',
        data: wmsStreamShop
    });
}


// 启用或停用店铺
export function startOrStopStreamShop(wmsStreamShopList) {
    return request({
        url: '/system/streamShop/startOrStop',
        
        method: 'post',
        data: wmsStreamShopList 
    });
}
export function getStreamShopList(pageNum,pageSize) {//获取店铺列表
    return request({
        url: '/system/streamShop/list',
        headers: {
            isToken: true
        },
        method: 'get',
        params: {
            pageNum,pageSize
        }
    });
}
export function addStreamHost(inboundForm) {//增加主播
    return request({
        url: '/system/streamHost',
        headers: {
            isToken: true
        },
        method: 'post',
        data: inboundForm
    });
}

export function getStreamHostList(pageNum,pageSize) {//获取主播列表
    return request({
        url: '/system/streamHost/list',
        headers: {
            isToken: true
        },
        method: 'get',
        params: {
            pageNum,pageSize
        }
    });
}

